package controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import service.SimpleService;

	public class ManualController {
	private SimpleService simpleService;
	
	public void setSimpleService(SimpleService simpleService){
		this.simpleService= simpleService;
	}
	@RequestMapping(value="/edit.do")
	public ModelAndView onSubmit(HttpServletRequest reqs,
			HttpServletResponse resp,  @RequestParam("rd") String id) throws Exception {
		
		System.out.println("controller...");
		//get the job type  1.update 2.insert 3. delete
		int actionNo = (int)reqs.getAttribute("actionNo");
	
		System.out.println("id"+ id);
		System.out.println("actionNo"+ actionNo);
		return null;
	}

}
